<div id="LAY_app">
    <!--<div style="width:100%;height:67px;background: #000 url('<?= PUBLIC_URL ?>/admin/images/login_bg1.jpg') no-repeat center center;"></div>-->
    <div class="layui-layout layui-layout-admin">
        <div class="layui-header">
            <!-- 头部区域 -->
            <ul class="layui-nav layui-layout-left">
                <li class="layui-nav-item layadmin-flexible" lay-unselect>
                    <a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
                        <i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect>
                    <a href="javascript:;" layadmin-event="back" title="返回">
                        <i class="layui-icon layui-icon-left"></i>
                    </a>
                </li>
                <li class="layui-nav-item  layui-hide-xs" lay-unselect>
                    <a href="javascript:;" layadmin-event="refresh" title="刷新">
                        <i class="layui-icon layui-icon-refresh-3"></i>
                    </a>
                </li>
                
            </ul>
            <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right">

                <?php
                foreach ($menu_data_tmp[0] as $k => $v) {
                    if (strrpos($this->_adminInfo["menu"], "|" . $v["id"] . "|") !== false || $this->_adminInfo["role_id"] == -1) {
                        ?>
                        <li class="layui-nav-item layui-this">
                            <a <?= $v["url"] ? "lay-href='" . MANAGE_URL . "&" . $v["url"] . "'" : "href='javascript:;'" ?>><?= $v["title"] ?></a>
                            <?php
                            if (isset($menu_data_tmp[$k])) {
                                ?>
                                <dl class="layui-nav-child">
                                    <?php
                                    foreach ($menu_data_tmp[$k] as $k2 => $v2) {
                                        if (strrpos($this->_adminInfo["menu"], "|" . $v2["id"] . "|") !== false || $this->_adminInfo["role_id"] == -1) {
                                            ?>
                                            <dd><a  <?= $v2["url"] ? "lay-href='" . MANAGE_URL . "&" . $v2["url"] . "'" : "href='javascript:;'" ?> style="padding-left:20px"><?= $v2["title"] ?></a></dd>
                                        <?php
                                        }
                                    }
                                    ?>
                                </dl>
                        <?php } ?>
                        </li>
                    <?php
                    }
                }
                ?>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="javascript:;" layadmin-event="note">
                        <i class="layui-icon layui-icon-note"></i>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="javascript:;" layadmin-event="theme">
                        <i class="layui-icon layui-icon-theme"></i>
                    </a>
                </li>
                <li class="layui-nav-item layui-hide-xs" lay-unselect>
                    <a href="javascript:;" layadmin-event="fullscreen">
                        <i class="layui-icon layui-icon-screen-full"></i>
                    </a>
                </li>
                <li class="layui-nav-item" lay-unselect style="margin-right: 20px">
                    <a href="javascript:;">
                        <cite><?= $this->_adminInfo["truename"] ?></cite>
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a lay-href="<?= $this->adminUrl["editPassword"] ?>">修改密码</a></dd>
                        <hr>
                        <dd style="text-align: center;"><a href="<?= $this->loginUrl["logout"] ?>">退出</a></dd>
                    </dl>
                </li>
            </ul>
        </div>
        <style>
            .ayui-side-scroll{
                overflow-y: scroll;
            }
            .layui-side-scroll::-webkit-scrollbar {/*滚动条整体样式*/
                width: 10px;     /*高宽分别对应横竖滚动条的尺寸*/
                height: 1px;
            }
            .layui-side-scroll::-webkit-scrollbar-thumb {/*滚动条里面小方块*/
                border-radius: 10px;
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                background: #535353;
            }
            .layui-side-scroll::-webkit-scrollbar-track {/*滚动条里面轨道*/
                -webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
                border-radius: 10px;
                background: #EDEDED;
            }
        </style>
<?php include "left_default.php" ?>

        <!-- 页面标签 -->
        <div class="layadmin-pagetabs" id="LAY_app_tabs">
            <div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
            <div class="layui-icon layadmin-tabs-control layui-icon-down">
                <ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
                    <li class="layui-nav-item" lay-unselect>
                        <a href="javascript:;"></a>
                        <dl class="layui-nav-child layui-anim-fadein">
                            <dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前标签页</a></dd>
                            <dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它标签页</a></dd>
                            <dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部标签页</a></dd>
                        </dl>
                    </li>
                </ul>
            </div>
            <div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
                <ul class="layui-tab-title" id="LAY_app_tabsheader">
                    <li lay-id="home/console.html" lay-attr="home/console.html" class="layui-this"><i class="layui-icon layui-icon-home"></i></li>
                </ul>
            </div>
        </div>


        <!-- 主体内容 -->
        <div class="layui-body" id="LAY_app_body">
            <div class="layadmin-tabsbody-item layui-show">
                <iframe src="<?= $mainUrl ?>" frameborder="0" class="layadmin-iframe"></iframe>
            </div>
        </div>

        <!-- 辅助元素，一般用于移动设备下遮罩 -->
        <div class="layadmin-body-shade" layadmin-event="shade"></div>
    </div>
</div>